import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
      meta:{
        title:"首页",
        isLogin:false
      }
    },
    {
      path: '/page/:id/',
      name: 'page',
      component: ()=>import("@/views/PageView.vue"),
      meta:{
        title:"章节",
        isLogin:false
      },
    },
    {
      path: '/novel_con/:id/',
      name: 'novel_con',
      component: ()=>import("@/views/PageNovel_Content.vue"),
      meta:{    
        title:"小说内容",
        isLogin:false
      },
    }

  ]
})

export default router
